export const getPlayBackOptions = ({
  mbflbm = '0301',
  extraTargetOptions = {},
  extraTrackPointOptions = {},
  extraTrackLineOptions = {},
}) => {
  return {
    clookOptions: {
      speed: 10,
      maxSpeed: 100,
    },
    trackLineOptions: {
      idDraw: true,
      stroke: true,
      color: '#6bffff', // 线条颜色
      weight: 3,
      fill: false,
      fillColor: '#6bffff', // 填充颜色
      opacity: 0.5, // 透明度
      ...extraTrackLineOptions,
    },
    targetOptions: {
      useImg: true,
      imgUrl: '/images/LeafletImages/ship.png',
      showText: (points) => {
        return 'asd';
      },
      hideWhenEnd: true,
      width: 18 * 1.5,
      height: 18 * 1.5,
      color: '#6bffff',
      fillColor: '#6bffff',
      ...extraTargetOptions,
    },
    trackPointOptions: {
      idDraw: false,
      useCanvas: true,
      stroke: false,
      color: '#6bffff',
      fill: true,
      fillColor: '#6bffff',
      opacity: 0.5,
      radius: 4,
      drawSinglePoint: false,
      ...extraTrackPointOptions,
    },
  };
};
